package admin

import (
	"context"
	"server/api/admin/lesson"
	"server/internal/model"
	"server/internal/service"
)

func (c *ControllerLesson) UserList(ctx context.Context, req *lesson.UserListReq) (res *lesson.UserListRes, err error) {
	res = new(lesson.UserListRes)
	res.List, res.Total, err = service.LessonUser().List(ctx, model.LessonUserListInput{
		Page:     req.Page,
		PageSize: req.PageSize,
	})
	return
}
